package com.li.springbootproject.config.mybatis;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;

/**
 * @Description：Sql 完整输出sql
 * @Author：LiDong
 * @Create：2020/12/26
 * @Version：1.0.0
 */
@SuppressWarnings("ALL")
@Configuration
public class SqlLoogerConfig {

    @Value("${sql.type)")
    private String sqltype;

    //@Bean
    public SqlInterceptor sqlInterceptor() {
        try {
            return new SqlInterceptor();
        } catch (Exception e) {
            return null;
        }
    }


}
